#!/bin/bash

while [ 1 ]
do
        daemon_name=$(ps -ef | grep LocationServer | grep -v grep)
        echo $daemon_name
        if ["$daemon_name" == ""]
        then
                cd /home/gamevil/project/projectz/trunk/LocationServer
                Debug/LocationServer &
        fi
        sleep 60
done